#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <cshared.h>

#include "cblogheader.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

    CBlogHeader blogHeader;
public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_edt_title_editingFinished();

    void on_edt_data_editingFinished();

    void on_edt_categories_editingFinished();

    void on_edt_tags_editingFinished();

    void on_cbx_swiper_currentIndexChanged(int index);

    void on_edt_swiperImg_editingFinished();

    void on_btn_2picbedlink_clicked();

    void on_cbx_top_currentIndexChanged(int index);

    void on_cbx_toc_currentIndexChanged(int index);

    void on_cbx_tocOpen_currentIndexChanged(int index);

    void on_cbx_comments_currentIndexChanged(int index);

    void on_edt_img_editingFinished();

    void on_btn2_2picbedlink_clicked();

    void on_edt_more_cursorPositionChanged();

    void on_btn_copyOutText_clicked();

private:
    Ui::MainWindow *ui;

    void update_outBlogHeader();
};
#endif // MAINWINDOW_H
